FROM registry.icp.com:5000/service/devops/runtime/openjdk:1.8.0
RUN mkdir /usr/lib/policy-auth
RUN mkdir /usr/lib/policy-auth/config
COPY ./dgov-auth/target/dgov-auth.jar /usr/lib/policy-auth/app.jar
RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/main\nhttps://mirror.tuna.tsinghua.edu.cn/alpine/v3.4/community" > /etc/apk/repositories
RUN apk add --no-cache ttf-dejavu
WORKDIR /usr/lib/policy-auth/
ENTRYPOINT ["java","-jar","app.jar"]
EXPOSE 8100